@import url("normalize.css");

:root {
  --indigo: #622aff;
  --red: #e94256;
  --green: #0b9e43;
  --blue: #249ffd;
  --teal: #2294b1;
  --fuchsia: #dd04d1;
  --orange: #e2620c;
  --cornflower: #0e90db;
  --mahogany: #e94b1b;
  --avocado: #5f9800;
  --azure: #027fff;
  --bg-color-1: linear-gradient(-40deg, #d754ad 0%, #f96785 67%, #fe7333 100%);
  --bg-color-2: linear-gradient(-40deg, #af4fec 0%, #d753ad 70%, #eb6078 100%);
  --bg-color-3: linear-gradient(-40deg, #d152b8 0%, #d152b8 60%, #d152b8 100%);
  --bg-color-4: linear-gradient(-40deg, #6c6ff0 0%, #a354e4, #6c6ff0 0%, #a354e4 58%, #c65cae 100%);
  --bg-color-5: linear-gradient(140deg, #fe7142 0%, #cb4fc2 50%, #9A57E8 75%, #53A0E8 100%);
  --bg-color-6: linear-gradient(0deg, hsla(0, 0%, 93.3%, 0), hsla(0, 0%, 93.3%, 0.87) 50%, #eee 70%, #eee);
  --bg-color-6: linear-gradient(-40deg, #d754ad 0%, #f96785 67%, #fe7333 100%);
  --bg-color-7: linear-gradient(0deg, hsla(0, 0%, 93.3%, 0), hsla(0, 0%, 93.3%, 0.87) 50%, #eee 70%, #eee);
  --box-shadow-1: 0 4px 14px rgba(0, 0, 0, 0.1);
  --box-shadow-2: 0 4px 8px 0 rgba(0, 0, 0, 0.1), 0 10px 13px 0 rgba(0, 0, 0, .11);
  --box-shadow-3: 0 1px 2px rgba(0, 0, 0, 0.15);
  --box-shadow-4: 0 6px 25px 0 rgba(0, 0, 0, 0.05);
  --box-shadow-5: 0 6px 25px 0 rgba(0, 0, 0, 0.05);
  --box-shadow-6: 0 15px 30px rgba(0, 0, 0, 0.1);
}
html {
  font-size: 37.5px;
  background: #fafafa;
}
body {
  width: 100%;
  min-height: 100vh;
  min-width: 320px;
  max-width: 750px;
  margin: 0 auto 30px;
  top: 50px;
  font-size: 14px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Droid Sans", "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Droid Sans Fallback", "Microsoft YaHei", sans-serif;
  color: #666;
  background-color: #f5f5f7;
  line-height: 1.5;
}
/* 约束当屏幕大于750px的时候，html字体大小就不变化了 */
@media screen and (min-width: 750px) {
  html {
    font-size: 37.5px !important;
  }
}
@media (prefers-color-scheme: dark) {
  html,
  body,
  .main-nav {
    background-color: rgba(0, 0, 0, 0.8);
  }
}
/*点击高亮我们需要清除清除  设置为transparent 完成透明*/
* {
  outline: none;
  -webkit-tap-highlight-color: transparent;
}
/*在移动端浏览器默认的外观在iOS上加上这个属性才能给按钮和输入框自定义样式*/
input {
  -webkit-appearance: none;
}
/*禁用长按页面时的弹出菜单*/
img,
a {
  -webkit-touch-callout: none;
}
a {
  color: #666;
  text-decoration: none;
}
ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
hr {
  height: 1px;
  padding: 0;
  border: none;
  border-top: medium solidid #333;
  text-align: center;
}
img {
  vertical-align: middle;
}
div {
  /* css3 盒子模型 */
  box-sizing: border-box;
}
.clearfix::after {
  content: "";
  display: block;
  line-height: 0;
  visibility: hidden;
  height: 0;
  clear: both;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  text-align: center;
  padding: 0.3125rem;
}
h1 {
  color: var(--indigo);
  color: #1d1d1f;
}
h2 {
  color: var(--red);
  text-align: left;
  margin-left: 0.3125rem;
}
h2::before {
  content: '';
  display: inline-block;
  width: 25px;
  height: 25px;
  margin-right: 0.3125rem;
  vertical-align: text-bottom;
  /* background-image: url(../icons/nav.svg); */
  background-size: 100%;
  background-position: 0 0;
}
h3 {
  color: var(--green);
}
h4 {
  color: var(--teal);
}
h5 {
  color: var(--fuchsia);
}
h6 {
  color: var(--orange);
}
hr {
  width: 98%;
  width: 414px;
  height: .5px;
  box-sizing: border-box;
  border: none;
  background-color: #d2d2d7;
  box-shadow: var(--box-shadow-4);
}
a {
  color: var(--cornflower);
}
a:hover,
a:link,
a:focus,
a:active,
a:visited {
  color: inherit;
}
.search-container {
  position: sticky;
  z-index: 9999;
  display: none;
  top: 0px;
  padding: 0.125rem 0;
  flex: 1;
  box-sizing: border-box;
  background-color: #fff;
  background: linear-gradient(0deg, hsla(0, 0%, 93.3%, 0), hsla(0, 0%, 93.3%, 0.87) 40%, #eee 60%, #eee);
}
.search-container form {
  width: 100%;
  /* border: 1px solid #ddd; */
  height: 40px;
  display: block;
  min-width: 80%;
  max-width: 80%;
  width: calc(100% - 60px);
  min-width: 320px;
  margin: 5px auto 5px;
  position: relative;
  box-sizing: border-box;
  background-color: transparent;
}
.search-input {
  width: 100%;
  height: 100%;
  display: block;
  border: 1px solid #f0f0f0;
  border-radius: 999rem;
  box-shadow: var(--box-shadow-5);
  line-height: 100%;
  text-indent: 20px;
  font-size: 18px;
  box-sizing: border-box;
  backdrop-filter: saturate(1.8) blur(20px);
  background-color: rgba(255, 255, 255, 0.72);
}
.search-btn {
  width: 40px;
  height: 40px;
  display: block;
  position: absolute;
  right: 6px;
  top: 6px;
  cursor: pointer;
  font-size: 22px;
  line-height: 40px;
  border: none;
  border-radius: 50%;
  color: var(--orange);
  outline: none;
  background: var(--bg-color-7);
  background: url(../icons/search.svg) no-repeat 3px 0px;
  background-size: 30px;
  backdrop-filter: saturate(1.8) blur(20px);
}
@media screen and (min-width: 914px) {
  body {
    width: 80%;
    min-height: 100vh;
    min-width: 320px!important;
    max-width: 80%!important;
    box-shadow: 0 6px 25px 0 rgba(0, 0, 0, 0.05);
  }
}
